/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 16:22:44
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 16:33:13
 */
public class Test05_Shape {
    public static void main(String[] args) {
        Shape rectangle = new Rectangle("red", 2.0, 3.0);
        Shape circle = new Circle("blue", 5);
        System.out.println(rectangle.getColor());
        System.out.println("Area:" + rectangle.area());
        System.out.println();
        System.out.println(circle.getColor());
        System.out.println("Area:" + circle.area());
    }
}
